package com.liaoban.app.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.liaoban.app.R;
import com.liaoban.app.api.type.Anchor;
import com.liaoban.app.helper.ImageHelper;
import com.liaoban.app.util.CommonUtils;

import java.util.List;

/**
 * 主播详情视频
 */
public class AnchorVideoAdapter extends BaseQuickAdapter<Anchor.VideoBean, BaseViewHolder> {

    public AnchorVideoAdapter(@Nullable List<Anchor.VideoBean> data) {
        super(R.layout.item_anchor_video, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Anchor.VideoBean item) {
        ImageView ivIcon = helper.getView(R.id.iv_icon);
        ImageHelper.load(ivIcon, CommonUtils.getFullPic(item.getImgSrc()));
    }
}
